package com.gaoding.qa.auto.base;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.gaoding.commons.dto.BaseDto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.UUID;

/**
 * @author mobai
 * @since 2021/9/25 18:31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class BaseGenerateTokenRequestDTO extends BaseDto {

    private String account;

    private String password;

    @JsonProperty("device_id")
    private String deviceId= UUID.randomUUID().toString();

    @JsonProperty("grant_type")
    private String grantType="account";

    @JsonProperty("client_id")
    private String clientId="qiye";

    @JsonProperty("client_secret")
    private String clientSecret="gaoding_123456";
}
